import string

def xxbb(text):
      text=text.replace(",","")
      text=text.replace(".","")
      texts = text.lower().split()
      text_count = {}
      for world in texts:
          if  world in text_count :
              text_count[world] += 1
          else:
              text_count[world] = 1
      for x in text_count :
          print(x)
      t = sorted(text_count.items() ,key=lambda item: item[1], reverse=True)
      print(t)


text = "To be or not to be, that is the question."
xxbb(text)
